<template>
	<view class="page">
		<view class="head">
			<view class="job-resume-switch">
				<u-tabs
					:list="switchList"
					duration="0"
					lineWidth="93"
					lineHeight="2"
					lineColor="#c8000a"
					:scrollable="false"
					:itemStyle="{ height: '74rpx', width: '25%', fontsize:'30rpx', backgroundColor:'#f5f5f5'}"
					:inactiveStyle="{ color: '#333333',}"
					:activeStyle="{ color: '#c8000a',}"
				>
				</u-tabs>
			</view>
		</view>
		<view class="body">
			<block v-for="(item, index) in 10" :key="index">
				<view class="job-resume-item">
					<view class="job-resume-info" @click="goToPersonalShow()">
						<view class="job-resume-info-avatar">
							<u-avatar src="/static/job/name.jpg" size="95rpx" @click="goToPersonalShow()"></u-avatar>
							<image class="job-resume-info-avatar-sex" src="/static/job/man.png"></image>
						</view>
						<view class="job-resume-info-content">
							<view class="job-resume-info-head">
								<view class="job-resume-info-title">高女士<text>（保姆/月嫂）</text></view>
								<view class="job-resume-info-view">794浏览</view>
							</view>
							<view class="job-resume-info-body">
								<view class="job-resume-info-tag">
									<view class="job-resume-info-tag-item">
										<u-tag text="3-5年工作经验" bgColor="#f7d9da" color="#c8000a" size="mini" type="warning" @click="goToPersonalShow()"></u-tag>
									</view>
									<view class="job-resume-info-tag-item">
										<u-tag text="27岁" bgColor="#f7d9da" color="#c8000a" size="mini" type="warning" @click="goToPersonalShow()"></u-tag>
									</view>
								</view>
								<view class="job-resume-info-show job-resume-info-display">展示中</view>
							</view>
							<view class="job-resume-info-bottom">
								<view class="job-resume-info-specialty">
									<text>做过3-5年柳工</text>
									<text>会用电焊</text>
									<text>气割</text>
								</view>
								<view class="job-resume-info-time">07-30 09:34</view>
							</view>
						</view>
					</view>
				</view>
				
				<view class="job-resume-info-operation">
					<u-gap height="2" bgColor="#f5f5f5" marginTop="10rpx" marginBottom="20rpx"></u-gap>
					<view class="job-resume-info-operation-list">
						<view class="job-resume-info-operation-item">
							隐藏
						</view>
						<view class="job-resume-info-operation-item">
							刷新
						</view>
						<view class="job-resume-info-operation-item">
							置顶
						</view>
						<view class="job-resume-info-operation-item">
							修改
						</view>
					</view>
				</view>
				
				<u-gap height="5" bgColor="#f5f5f5" marginTop="20rpx" marginBottom="20rpx"></u-gap>
			</block>
		</view>
		<view class="bottom">
			<view style="height: 100rpx;"></view>
		</view>
		<!-- 自定义底部导航菜单开始 -->
		<JobTabbar :selectIndex="jobTabbarIndex"></JobTabbar>
		<!-- 自定义底部导航菜单结束 -->
		
	</view>
</template>

<script>
import JobTabbar from '@/components/JobTabbar/JobTabbar.vue';
	export default {
		data() {
			return {
				jobTabbarIndex: 4, //控制底部导航显示那个栏目激活状态
				resumeType: 1, // 简历默认状态 1 全部
				myResumeList: [], // 我的简历列表
				indexPage:  1, // 默认翻页
				indexAllPage: 1, //全部分页
				loadMoreStatus: 'loading', // 底部加载状态
				
				switchList: [
					{
						name: '全部'
					},
					{
						name: '展示中'
					},
					{
						name: '未公开'
					},
					{
						name: '待审核'
					}
				],
			}
		},
		onLoad() {
			this.getJobMeMyResumeList()
		},
		methods: {
			getJobMeMyResumeList() {
				this.$api.getJobMeMyResumeList({openid: getApp().globalData.openid, page: this.indexPage, Type:this.resumeType}).then(res => {
					console.log(res.data) 
				})
			}
		},
		components: {
			JobTabbar,
		}
	}
</script>

<style lang="scss" scoped>
@import url('jobMyResume.css');
</style>